<template>
  <div class="login_title">
    <div class="title">
      {{ status !== 1 ? '登录' : '用户注册' }}
    </div>
    <div class="content">
      <span>
        {{ status === 1 ? '已有账户？' : '第一次使用cereshop商城？' }}
      </span>
      <u @click="$emit('registered')">
        {{ status === 1 ? '立即登录' : '用户注册' }}
      </u>
    </div>
  </div>
</template>

<script setup>
import { toRefs } from 'vue'
const props = defineProps({
  status: {
    type: Number,
    require: true,
  }
})
const { status } = toRefs(props);
defineEmits(['registered']);
</script>

<style lang="scss" scoped>
.login_title{
  font-family: Microsoft YaHei;
  color: #333333;
  .title{
    font-size: 36px;
  }
  .content{
    margin: 10px 0;
    font-size: 14px;
    u{
      color: $mainGlod;
      cursor: pointer;
    }
  }
}
</style>